package com.udaos.modules.project.services;

import java.util.List;

import org.nutz.dao.Cnd;
import org.nutz.dao.Dao;
import org.nutz.ioc.loader.annotation.IocBean;

import com.udaos.common.base.Service;
import com.udaos.models.project.Ud_train_project;

/**
 * 项目Service
 * @author mutaotao
 * @time 2017-01-18 11:17:20
 * 
 */
@IocBean(args = {"refer:dao"})
public class UdProjectService extends Service<Ud_train_project> {
		public UdProjectService(Dao dao) {
				super(dao);
		}

		/**
		 * 获取有效项目
		 * @return
		 */
		public List<Ud_train_project> find() {
			Cnd cnd =Cnd.NEW();
			cnd.and("delFlag", "=", "0");
			cnd.and("state", "=", 0);
			return dao().query(Ud_train_project.class,cnd);
		}
}